<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

<!--            <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
            <script type="text/javascript">
        //<![CDATA[
             bkLib.onDomLoaded(function() {
                  var myNicEditor = new nicEditor();
                  myNicEditor.addInstance('enun');
             });
          //]]>
            </script>-->


            <div class="enunciado">
                <h:outputText value="#{vStatus.index+1} - #{questaoTemp.autor} - #{questaoTemp.enunciado}" id="enun" escape="false" />
            </div>
            <div class="textoAjuda">
                <h:outputText value="#{questaoTemp.textoAjuda}" />
            </div>

            <div class="itens">

                <!--Para multipla Escolha-->
                <h:panelGrid styleClass="itens" rendered="#{questaoTemp.tipoQuestao.multiplaEscolha}">
                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >
                        <div style="display: block" >
                            <h:outputText value="(  ) - #{itemTemp.descricao}" escape="false" />
                        </div>
                    </c:forEach>
                </h:panelGrid>

                <!--Para multipla Seleção-->
                <h:panelGrid styleClass="itens" rendered="#{questaoTemp.tipoQuestao.multiplaSelecao}">
                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >
                        <div style="display: block" >
                            <h:outputText value="[  ] - #{itemTemp.descricao}" />
                        </div>
                    </c:forEach>
                </h:panelGrid>

                <!--Para verdadeiro ou falco-->
                <h:panelGrid styleClass="itens" rendered="#{questaoTemp.tipoQuestao.verdadeiroOuFalso}">
                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >
                        <div style="display: block" >
                            <h:outputText value="(  ) - #{itemTemp.descricao}" />
                        </div>
                    </c:forEach>
                </h:panelGrid>
            </div>
        </ui:composition>

    </body>
</html>
